package com.wpml.product.service;

import com.wpml.common.util.PageUtils;
import com.wpml.product.entity.AttrModel;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wpml.product.vo.AttrGroupRelationVo;
import com.wpml.product.vo.AttrRespVo;
import com.wpml.product.vo.AttrVo;

import java.util.List;
import java.util.Map;


/**
 * 商品属性(PmsAttr)表服务接口
 *
 * @author wangpei
 * @since 2020-04-07 11:32:56
 */
public interface AttrService extends IService<AttrModel> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    List<AttrModel> getRelationAttr(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

}
